-- GENERATED SPELL FOR [Enslaved Servant] --


function spell0_22965(pUnit, Event) --@Kidney Shot,n/a--
pUnit:FullCastSpellOnTarget(41389,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22965', 4269, 1)
end

function spell1_22965(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(41388,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22965', 607, 1)
end

function Sorts_22965(pUnit, Event)
local choix_sorts_22965 = math.random(0, 1)
if choix_sorts_22965 == 0 then
pUnit:RegisterEvent('spell0_22965', 1, 1)
end
if choix_sorts_22965 == 1 then
pUnit:RegisterEvent('spell1_22965', 1, 1)
end
end

function mob22965_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22965', math.random(1500, 3000), 1)
end

function mob22965_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22965_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22965_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22965, 1, 'mob22965_Action')
RegisterUnitEvent(22965, 2, 'mob22965_Leave')
RegisterUnitEvent(22965, 3, 'mob22965_Kill')
RegisterUnitEvent(22965, 4, 'mob22965_Die')
